home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
151-175
/
scopedisk168
/
asmmacros
/
am_02
/
parentdir.i
< prev
next >
Wrap
Text File
|
1995-03-19
|
1KB
|
48 lines
NOLIST
ParentDir MACRO ; 15 Sept 88
*------------------------------; Start of ParentDir macro.
NOLIST
IFEQ NARG-2 ; If <FileLockName> is given, then
LIST
; Get the file lock from <FileLockName>.
NOLIST
IFEQ ReEntrant-1
LIST
MOVE.L \2(A5),D1
NOLIST
ENDC
IFNE ReEntrant-1
LIST
MOVE.L \2,D1
NOLIST
ENDC
ENDC
IFEQ NARG-1 ; If <FileLockName> is not given, then
LIST
MOVE.L D0,D1 ; Use the file lock given in D0.
NOLIST
ENDC
LIST
CallLib ParentDir,dos ; Call ParentDir.
; Save the parent directory lock at the named
; location.
NOLIST
IFEQ ReEntrant-1
LIST
DefDS \1,1
MOVE.L D0,\1(A5)
NOLIST
ENDC
IFNE ReEntrant-1
LIST
DS_BSS \1,1,.L
MOVE.L D0,\1
NOLIST
ENDC
LIST
TST.L D0 ; Make the zero flag indicate if parent dir
; was the root.
*------------------------------; End of ParentDir macro.
ENDM
LIST